home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / Installer / DeveloperInterfaces / CSources / ActionHandlerCBGlue.c < prev    next >
Encoding:
Text File  |  1994-07-25  |  1011 b   |  41 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ActionHandlerCBGlue.c
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Kevin Aitken
  7.  
  8.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     7/19/93    KBA        Changing RegisterAction to RegisterScriptAction.
  13.          <1>      7/9/93    KBA        first checked in
  14.  
  15. */
  16.  
  17.  
  18.  
  19. void RegisterScriptAction(     CallBackProcPtr    pCallBackProcPtr,
  20.                             short            actionClassID,
  21.                             short            actionIdentifier,
  22.                             void*            param0,
  23.                             void*            param1,
  24.                             void*            param2,
  25.                             void*            param3,
  26.                             void*            resultPtr  )
  27. {
  28.     CallBackPBRec    theCallBackPBRec;
  29.     
  30.     theCallBackPBRec.fSelector = 33;
  31.     theCallBackPBRec.fParam[0] = (long)actionClassID;
  32.     theCallBackPBRec.fParam[1] = (long)actionIdentifier;
  33.     theCallBackPBRec.fParam[2] = (long)param0;
  34.     theCallBackPBRec.fParam[3] = (long)param1;
  35.     theCallBackPBRec.fParam[4] = (long)param2;
  36.     theCallBackPBRec.fParam[5] = (long)param3;
  37.     theCallBackPBRec.fParam[6] = (long)resultPtr;
  38.     (**pCallBackProcPtr)( &theCallBackPBRec );
  39. }    
  40.     
  41.